import request from '@/utils/request'
// 新增头像框
export function saveActivityData(data) {
  return request({
    url: '/activity/saveActivityData',
    method: 'post',
    data
  })
}
// 修改头像框
export function updateActivityData(data) {
  return request({
    url: '/activity/updateActivityData',
    method: 'post',
    data
  })
}
export function listActivityData(data) {
  return request({
    url: '/activity/listActivityData',
    method: 'post',
    data
  })
}

export function deleteActivityData(data) {
  return request({
    url: '/activity/deleteActivityData',
    method: 'post',
    data
  })
}

export function updateActivityStatus(id) {
  return request({
    url: '/activity/updateActivityStatus',
    method: 'post',
    data: { id }
  })
}

export function getNormalIconFrame(data) {
  return request({
    url: '/activity/getNormalIconFrame',
    method: 'post',
    data
  })
}

export function getNormalRoll(data) {
  return request({
    url: '/activity/getNormalRoll',
    method: 'post',
    data
  })
}

export function getNormalEnvelope(data) {
  return request({
    url: '/activity/getNormalEnvelope',
    method: 'post',
    data
  })
}
export function getNormalBox(data) {
  return request({
    url: '/activity/getNormalBox',
    method: 'post',
    data
  })
}

/* 合成详情相关*/
export function materialRecord(data) {
  return request({
    url: '/activity/page/material/record',
    method: 'post',
    data
  })
}

export function targetRecord(data) {
  return request({
    url: '/activity/page/target/record',
    method: 'post',
    data
  })
}

// 添加箱子card配置
export function addCardSetting(data) {
  return request({
    url: '/box/addCardSetting',
    method: 'post',
    data
  })
}
export function getCardSetting(data) {
  return request({
    url: '/box/getCardSetting',
    method: 'post',
    data
  })
}

export function listSelect() {
  return request({
    url: '/activity/list/select',
    method: 'post'
  })
}

// 端午节
/* 合成详情相关*/
export function syntheseisRecord(data) {
  return request({
    url: '/syntheseisRecord/listPage',
    method: 'post',
    data
  })
}
// 总计
export function syntheseisRecordSumPrice(data) {
  return request({
    url: '/syntheseisRecord/sumPrice',
    method: 'post',
    data
  })
}
